--[[
 * 移除指定buff
 * [0] buffId
 */
]]
---@class BuffEffect41 : BaseBuffEffect
BuffEffect41 = ClientFight.CreateClass("BuffEffect41", ClientFight.BaseBuffEffect)
local t = BuffEffect41
---@param fight Fight
---@param buff FighterBuff
function t:action(fight, buff, ...)
    local parameters = {...};
    local fighter = buff.target;
    local effectVal = buff.buffBean.f_BuffEffectValue;
    for k, id in pairs(effectVal) do
        local removeBuff = BuffManager.getBuffByModel(fighter, id);
        if (removeBuff ~= nil) then
            BuffManager.removeFighterBuff(fight, fighter, removeBuff, true, parameters);
            SkillRoleMgr.savePathFile(string.format("[%s][EFFECT]%s触发%s移除指定buff%s",
                    fight.frame, fighter.fighterId, buff.modelId, id
            ));
        end
    end
    return ClientFight.BaseBuffEffect.action(self, fight, buff, parameters);
end

t.New()